﻿@extends('common.header')
<!DOCTYPE html>
<html lang="en">
<head>
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="white">
    <meta charset="UTF-8">
	<title>{{ $team_info->name }}_{{ $team_info->name }}赛程_{{ $team_info->name }}战绩_{{ $team_info->name }}排名_{{ $team_info->name }}积分{{ $config->webName }}</title>
	<link rel="shortcut icon" href="{{ asset('/images/favicon.ico') }}" />
	<meta name="Keywords" content="{{ $team_info->name }},{{ $team_info->name }}赛程,{{ $team_info->name }}战绩,{{ $team_info->name }}排名,{{ $team_info->name }}积分" />
	<meta name="Description" content="蜘蛛比分网(zhizhu.TV)为您提供{{ $team_info->name }}详细数据，包含{{ $team_info->name }}赛程、{{ $team_info->name }}战绩、{{ $team_info->name }}排名、{{ $team_info->name }}球员名单等，欢迎球迷朋友前来查阅。"/>
	<link rel="stylesheet" type="text/css" href="{{ asset('/css/juhe/teamdetail.css') }}"/>
	<script src=" {{ asset('/js/jquery-1.8.3.min.js') }} "></script>
</head>
<body>
<!--面包屑导航-->
<div style="width: 1200px;height: 40px;line-height:40px;position: relative;margin: 110px auto 0;">
    <ol style="float: left;overflow: hidden;color: #333;list-style: none;">
        <li style="float: left;margin-left: 5px">当前位置：</li>
        <li style="float: left;margin-left: 5px"><a href="{{ url('/') }}" style="color: #de1e30;margin-left: 5px">首页</a></li>
		 <li style="float: left;margin-left: 5px"><a href="{{ url('/database') }}" style="color: #de1e30;margin-left: 5px">>资料库</a></li>
		  <li style="float: left;margin-left: 5px">>球队 >{{ $team_info->name }}</li>
    </ol>
</div>

<div class="w">
    <div class="left fl">
        <!--球队详情-->
        <div class="detail_left">
            <div class="team_detail">
                <a class="team_logo"><img src="{{ $team_info->image_110x88_url }}" alt=""></a>
                <a href="#" class="team_name"><span>{{ $team_info->name }}</span></a>
            </div>
            <table class="t_ball">
			<!-- 
			-->
                <tbody>
                <tr class="zj_ball">
                    <td colspan="1" class="t_dark">队名</td>
                    <td colspan="2">{{ $team_info->name }}</td>
                    <td colspan="1" class="t_dark">英文名</td>
                    <td colspan="2">{{ $team_info->name_en }}</td>
                </tr>
                <tr class="zj_ball">
                    <td colspan="1" class="t_dark">城市</td>
                    <td colspan="2">{{ $team_info->city }}</td>
                    <td colspan="1" class="t_dark">球队主场</td>
                    <td colspan="2">{{ $team_info->stadium_name_cn }}</td>
                </tr>
                <tr class="zj_ball">
                    <td colspan="1" class="t_dark">身价</td>
                    <td colspan="2">{{ $team_info->worth }}</td>
                    <td colspan="1" class="t_dark">创建时间</td>
                    <td colspan="2">{{ $team_info->founded }}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!--球队赛果和阵容-->
        <!--主场客场-->
        <div class="rmss cont_t_r">
            <div class="jfb" id="recom_news" style="margin-top: 0">
                <a href="javascript:;">赛程赛果</a>
                <a href="javascript:;">球队阵容</a>
            </div>
            <div class="team1 team_r">
                <table class="js-tr-title-sg">
                    <!--头部-->
                    <thead>
                    <tr>
                        <td class="name">赛事</td>
                        <td class="time">时间</td>
                        <td class="vsl">主队球队</td>
                        <td class="score">比分</td>
                        <td class="vsr">客队球队</td>
                        <td class="half">半场</td>
                    </tr>
                    </thead>
                    <!--主体-->
                    <tbody class="team1_tb">
                    
						@forelse( $new_schedule as $key => $schedule )
						<tr>
							<td>
								<a href="{{ url('/database') }}/{{ $schedule['league_id'] }}">
								{{ $schedule['league_name'] }}
								</a>
							</td>
							<td>{{ $schedule['dateshow'] }}</td>
							<td>
								@if( $schedule['home_can'] )
									<a href="{{ url('/teamdetail') }}/{{ $schedule['home_team_id'] }} " style="color:red;" >{{ $schedule['home_name'] }} </a>
								@else
									{{ $schedule['home_name'] }}
								@endif
							</td>
							<td>{{ $schedule['home_score'] }}-
								{{ $schedule['away_score'] }}</td>
							<td>
								@if( $schedule['away_can'] )
									<a href="{{ url('/teamdetail') }}/{{ $schedule['away_team_id'] }} " style="color:red;" >{{ $schedule['away_name'] }}</a>
								@else
									{{ $schedule['away_name'] }}
								@endif
							</td>
							<td>{{ $schedule['half_score'] }}</td>
						</tr>
						@empty
						@endforelse
                    
                    </tbody>
                </table>
            </div>
            
			
			<div class="team2 team_r" style="display: none">
                <table class="js-tr-title-grey">
                    <!--头部-->
                    <thead>
                    <!--nav-->
                    <tr class="sub-title">
                        <td>号码</td>
                        <td>国籍</td>
                        <td class="member">球员</td>
                        <td>位置</td>
                        <td>年龄</td>
                        <td>身高(cm)</td>
                        <td>体重(kg)</td>
                    </tr>
                    </thead>
                    <!--队员列表-->
                    <tbody class="team2_tb">
                    
						@forelse( $players as $key => $player_info )
						<tr class="zhongchang">
							<td>{{ $player_info->jersey_num }}</td>
							<td class="guoji">
								{{ $player_info->country }}
							</td>
							<td class="qiuyuan">
								<a href="{{ url('/playerdetail') }}/{{ $player_info->player_id }}" class="name">{{ $player_info->name }}</a>
							</td>
							<td data-name=",,">{{ $player_info->position_info }}</td>
							<td>{{ $player_info->age }}</td>
							<td>{{ $player_info->height }}</td>
							<td>{{ $player_info->weight }}</td>
						</tr>
						@empty
						@endforelse
                    
					</tbody>
                </table>
            </div>
        </div>

    </div>
    <div class="right fr">
        <!--标题-->
        <div class="xfrw1" style="width: 349px">
            <div class="sek"></div>
            <h3>相关<span class="col2">球队</span></h3>
            
        </div>
        <!--热门推荐-->
        <div class="right_team">
            <!--推荐球队列表-->
            <ul>
				@forelse( $team_pic as $key => $team_info )
                <li>
                    <a href="{{ url('/teamdetail') }}/{{ $team_info['team_id'] }}"  title="{{ $team_info['name'] }}" ><img src="{{ $team_info['image_110x88_url'] }}"></a>
                    <p><a href="{{ url('/teamdetail') }}/{{ $team_info['team_id'] }}">{{ $team_info['name'] }}</a></p>
                </li>
				@empty
				@endforelse
                
            </ul>
        </div>
    </div>
</div>
<!--隔行变色-->
<script>
    $('.team2_tb').ready(function () {
        $(".zhongchang:even").addClass("td_nav");
    });
    $('.team1_tb').ready(function () {
        $(".team1_tb tr:even").addClass("td_nav");
    });
</script>
<!--赛果阵容切换-->
<script>
    $(".team_r").eq(0).show();
    $("#recom_news a").eq(0).addClass("hover");
    $("#recom_news a").click(function () {
        var num = $("#recom_news a").index(this);
        $("#recom_news a").removeClass("hover");
        $(this).addClass("hover");
        $(".team_r").hide();
        $(".team_r").eq(num).show().siblings('.team_r').hide();
    });
</script>
@extends('common.footer')
</body>
</html>